<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/static/js/jquery.min.js"></script>
</head>
<body>
<div style="height: 40px;background-color: #dfdfdf;width: 100%;"></div>
<table>
    <form action="/home/" method="post" enctype="multipart/form-data">
        <input type="text" placeholder="name" name="uname" value="">
        <input type="text" placeholder="phone" name="phone" value="">
        <input type="file" name="fff">
        <input type="submit" value="tijiao">
    </form>
    {% for row in user_list %}
    <tr>
        <td><a href="/detail-{{ forloop.counter }}.html" target="_blank">{{ row.name }}</a></td>
        {% if row.phone <= 3333333 %}
        <td>xiao</td>
        <td>{{ row.phone }}</td>
        {% elif row.phone <= 6666666 %}
        <td>zhong</td>
        <td>{{ row.phone }}</td>
        {% else %}
        <td>da</td>
        <td>{{ row.phone }}</td>
        {% endif %}

    </tr>
    {% endfor %}
    {#{% extends '***.html' %} 继承公共模板#}
    {#{% block title %}{% endblock %} 用于替换的代码块 title要对应#}
    {#{% include "***.html" %} 加载模块#}
    {#自定义函数使用方法: #}
    {#app下创建templatetags目录 目录内创建任意py文件 创建temlate独享register(register=template.Library())#}
    {#setting注册app HTML顶部{% load 'xxx' %}文件 定义的函数需要使用装饰器 @register.simple_tag#}


</table>
{{ a|truncatewords }}
</body>
</html>